{extend name="public/main" /}

{block name="body"}
<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
    <form action="{:request()->url()}" method="post" class="xn_ajax" data-type="open">

        <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-block">
                <input type="text" name="username" lay-verify="required" placeholder="用户名"  onkeyup="this.value=this.value.replace(/[^\w_]/g,'');" autocomplete="off" class="layui-input" value="{$data.username?$data.username:''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">昵称</label>
            <div class="layui-input-block">
                <input type="text" name="nickname" lay-verify="required" placeholder="昵称" autocomplete="off" class="layui-input" value="{$data.nickname?$data.nickname:''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">密码</label>
            <div class="layui-input-block">
                <input type="password" name="password"  placeholder="密码" autocomplete="off" class="layui-input" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">安全密码</label>
            <div class="layui-input-block">
                <input type="password" name="safe_password"  placeholder="安全密码"  autocomplete="off" class="layui-input" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-block">
                <input type="number" name="mobile" lay-verify="required" placeholder="手机号"   autocomplete="off" class="layui-input" value="{$data.mobile?$data.mobile:''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                {if !empty($data.is_lock)}
                <input type="radio" name="is_lock"  value="0"  title="正常"   {$data.is_lock==0 ?  'checked':'' }>
                <input type="radio" name="is_lock"  value="1"  title="封禁"   {$data.is_lock==1 ?  'checked':'' } >

                {else/}
                <input type="radio" name="is_lock"  value="0"  title="正常" checked>
                <input type="radio" name="is_lock"  value="1"  title="封禁" >

                {/if}
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn">保存</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
{/block}